<template>
  <div @click="toHome">Login</div>
</template>

<script>
import { defineComponent } from "vue";
export default defineComponent({
  name: "Login",
});
</script>
<script setup>
import { useRouter } from "vue-router";

const router = useRouter();
const toHome = () => {
  router.push({
    path: "/home",
  });
};
</script>

<style lang="scss" scoped></style>
